package cn.agiledata.security.db.bean;

import cn.agiledata.bank.hibernateBean.Transaction;

public class TransactionEnctBean extends EnctBean {

	/**
	 * 把需要加密的字段存放在List中
	 * @param ab
	 */
	public TransactionEnctBean(Transaction trans) {
		addNeedEnctList(trans.getId());	//id
		addNeedEnctList(trans.getOrderId()); //订单编号
		addNeedEnctList(trans.getTransId()); //交易编号
		addNeedEnctList(trans.getActionType().getId());	//操作类型
		addNeedEnctList(trans.getCredit().getId());	//收款方编号
		addNeedEnctList(trans.getDebit().getId());	//付款方编号
		addNeedEnctList(trans.getAmount());	//金额
		addNeedEnctList(trans.getTradeType());	//交易模式
		addNeedEnctList(trans.getTransStatus());	//交易状态
		addNeedEnctList(trans.getDebitFee());	//付款方手续费
		addNeedEnctList(trans.getCreditFee());	//收款方手续费
		addNeedEnctList(trans.getAccountBankSeq());	//银行卡SEQ。提现时用到
		addNeedEnctList(trans.getCardNo());	//银行卡号。直付时用到
	}

}
